/**
 * 
 */
package moviles.turnomovil.persistencia;

import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

/**
 * @author juanjo
 *
 */
public class TurnomaticDBA {

	private static final String DATABASE_NAME = "turnomaticDB";
	private static final int DATABASE_VERSION = 1;
	
	private SQLiteDatabase db;
	
	/**
	 * 
	 */
	public TurnomaticDBA( Context ctx) {
		
		db = ctx.openOrCreateDatabase(DATABASE_NAME, SQLiteDatabase.OPEN_READWRITE, null );
		
		if( db != null && db.isOpen())
		{
			
		}
		
//		try {
//			db = ctx.openDatabase(DATABASE_NAME, null);
//		} catch (FileNotFoundException e) {
//			try {
//				db = ctx.createDatabase(DATABASE_NAME, DATABASE_VERSION, 0,
//						null);
//				db.execSQL(CREATE_TABLE_FEEDS);
//				db.execSQL(CREATE_TABLE_ARTICLES);
//			} catch (FileNotFoundException e1) {
//				db = null;
//			}
//		}
		}
}
